package com.dlu.safe_construction.common.utils;

import org.springframework.util.AntPathMatcher;

public class StringUtils {
    public static boolean isEmpty(String str) {
        if ("".equals(str) || str == null || " ".equals(str)) {
            return true;
        } else {
            return false;
        }
    }

    public static boolean isNotEmpty(String str) {
        if (str == "" || str == null || str == " ") {
            return false;
        } else {
            return true;
        }
    }

    public static boolean partCompare(String str1, String str2) {
        AntPathMatcher antPathMatcher = new AntPathMatcher();
        return antPathMatcher.matchStart(str1, str2);
    }
}
